package com.sskj.postar.enums;

public enum FabiTradeOrderStatusEnum {
    WAIT_PAY(1, "待付款"),
    WAIT_PAY_COIN(2, "待放币"),
    COMPLETE(3, "已完成"),
    APPEALING(4, "申诉中"),
    CANCELED(5, "已取消");

    private Integer code;
    private String message;

    FabiTradeOrderStatusEnum(Integer code, String message) {

        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static FabiTradeOrderStatusEnum getLawCoinOrderStatusEnumByCode(Integer code) {
        for (FabiTradeOrderStatusEnum coin : FabiTradeOrderStatusEnum.values()) {
            if (coin.getCode().equals(code)) {
                return coin;
            }
        }
        return null;
    }
}
